﻿@{
    Layout = null;
    ViewBag.Title = "修改昵称";
    var user = ViewData["model"] as Pay.DTO.merchant_dto;
}
<html>
<head>
    <meta charset="UTF-8">
    <title>修改昵称</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="format-detection" content="telphone=no, email=no" />
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <meta name="msapplication-tap-highlight" content="no">
    <link rel="stylesheet" type="text/css" href="~/Content/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/css/gelunbu.css" />
    <script src="~/Content/js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="~/Content/js/layer/1.9.3/layer.js"></script>
    <script src="~/Content/js/web.js"></script>
    <script type="text/javascript">
        function update() {
            ajax({
                url: '/User/Update',
                data: { UserName: $("#username").val() },
                success_msg: "修改成功",
                fail_msg: "修改失败"
            });
        }
    </script>
</head>
<body style="background: #F0F0F0;">
    <div class="nick_name">
        
            <input type="text" value="@user.name" id="username" placeholder="请输入昵称" class="mdf_ipt" />
            <input type="button" onclick="update()" class="keep_btn" value="保存" />
        
    </div>

</body>
</html>